/**
 * Mise en oeuvre de Reine.h
 *
 * @file Reine.cxx
 */

// A besoin de la declaration de la classe
#include "Reine.h"
#include <iostream>
#include <cstdlib>

using namespace std;

Reine::Reine()
{
	//cout << "Reine() - " << this << endl;
}

Reine::~Reine()
{
	//cout << "~Reine() - " << this << endl;
}

bool Reine::mouvementValide(Echiquier *e, int x, int y)
{
	return this->mouvementAutorise(e, x, y) && ((x == y) || ((this->x() == x) ^ (this->y() == y)));
}
